package day9;

import java.io.Serializable;

/**
 * @author oldliu
 * @since 1.0
 */
//银行账号
public class Account implements Serializable {
    private String no;//账号
    private String name;
    private float balance;//余额
    private transient String pass;
    public Account(){

    }
    private Account(String no, String name, float balance) {
        this.no = no;
        this.name = name;
        this.balance = balance;
        this.pass = "1234";
    }
    public Account(String no, String name, float balance, String pass) {
        this.no = no;
        this.name = name;
        this.balance = balance;
        this.pass = pass;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float getBalance() {
        return balance;
    }

    public void setBalance(float balance) {
        this.balance = balance;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    @Override
    public String toString() {
        return "Account{" +
                "no='" + no + '\'' +
                ", name='" + name + '\'' +
                ", balance=" + balance +
                ", pass='" + pass + '\'' +
                '}';
    }
}
